-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple signer CLI #1203
Simple signer CLI #1203
Conversation
…unts' into feature/signer-cli
Codecov Report
@@ Coverage Diff @@
## feature/testnet-runloop #1203 +/- ##
==========================================================
Coverage ? 82.61%
==========================================================
Files ? 149
Lines ? 40231
Branches ? 0
==========================================================
Hits ? 33237
Misses ? 6994
Partials ? 0
Continue to review full report at Codecov.
|
…accounts Feature/blocks transactions accounts
src/blockstack_cli.rs
Outdated
This CLI allows you to generate simple signed transactions for blockstack-core | ||
to process. | ||
|
||
This CLI has two methods: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"three methods"
src/blockstack_cli.rs
Outdated
|
||
e.g., | ||
|
||
blockstack-cli contract-call $secret_key SPJT598WY1RJN792HRKRHRQYFB7RJ5ZCG6J6GEZ4 10 0 foo-contract \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example doesn't match the usage.
transfer-fookens -e \\'SPJT598WY1RJN792HRKRHRQYFB7RJ5ZCG6J6GEZ4 \\ | ||
-e \"(+ 1 2)\" \\ | ||
-x 0000000000000000000000000000000001 \\ | ||
-x 050011deadbeef11ababffff11deadbeef11ababffff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, does -x
indicate that a serialized Clarity value is being passed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @kantai! Just a few minor changes in the documentation, and it should be good to go. You might need to re-base off of develop
first though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a simple transaction generation and signer CLI.
For now, this only supports standard single-single transactions. We can expand the feature set later if we want it to be expanded (good multi-sig support would probably require some refactoring in the TransactionAuth, Transaction, and TransactionSigner structs, as well as breaking generation & signing into two different CLI methods).
Note that arguments supplied via the
-x
flag currently would want the JSON serialization scheme, but would change to the more compact serialization once #1199 merges.